package cn.china.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/*@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)禁止springboot自动扫描屏数据库配置*/
@SpringBootApplication
/*@MapperScan("mapper") 扫描mapper接口所在的包*/
@MapperScan("mapper")
/*@ComponentScan("controller") 如将controller移出启动包，位于cn.china.springboot包外，java包内将不会自动扫描注解，需要添加此注释，使其扫描*/
public class SpringbootApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }
}
